import React, {Children, FC, PropsWithChildren} from 'react';
import {useRoutes} from "react-router-dom";
import * as utils from '@bastet/utils'
import * as widgets from '@bastet/widgets'
import { AuthorityProvider } from "./contexts/AuthorityContext";
import routes from "./routes";
import './root.less'

(window as any).utils = utils;
(window as any).widgets = widgets;

const App = () => {
  const content = useRoutes(routes);
  // console.log('content', content)
  return (
    <AuthorityProvider>
      { content }
    </AuthorityProvider>
  )
}

export default App;



















